-- GENERATED SPELL FOR [Ethereum Gladiator] --


function spell0_20854(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20854', 547, 1)
end

function spell1_20854(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20854', 10275, 1)
end

function spell2_20854(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20854', 5334, 1)
end

function Sorts_20854(pUnit, Event)
local choix_sorts_20854 = math.random(0, 2)
if choix_sorts_20854 == 0 then
pUnit:RegisterEvent('spell0_20854', 1, 1)
end
if choix_sorts_20854 == 1 then
pUnit:RegisterEvent('spell1_20854', 1, 1)
end
if choix_sorts_20854 == 2 then
pUnit:RegisterEvent('spell2_20854', 1, 1)
end
end

function mob20854_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20854', math.random(1500, 3000), 1)
end

function mob20854_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20854_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20854_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20854, 1, 'mob20854_Action')
RegisterUnitEvent(20854, 2, 'mob20854_Leave')
RegisterUnitEvent(20854, 3, 'mob20854_Kill')
RegisterUnitEvent(20854, 4, 'mob20854_Die')
